package com.course.generator;

import com.course.generator.util.FreeMakerUtils;
import freemarker.template.TemplateException;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * @author: Durian
 * @date: 2021/5/1 13:18
 */
public class GeneratorApplication {

    public static void main(String[] args) throws IOException, TemplateException {
        Map<String, Object> map = new HashMap<>();
        map.put("Entity", "Chapter");
        map.put("entity", "chapter");
        FreeMakerUtils.generator("service.ftl", "generator/ChapterService.java", map);
    }
}
